<!--
  Copyright 2020 The Chromium Authors. All rights reserved.
  Use of this source code is governed by a BSD-style license that can be
  found in the LICENSE file.
-->
<!DOCTYPE html>
<title>Launch Wasm module that launches debugger</title>
<script>
  (async () => {
    function bar() {
      debugger;
    }
    const module = await WebAssembly.compileStreaming(fetch('callstack-wasm-to-js.wasm'));
    const instance = await WebAssembly.instantiate(module, {imports: {bar: bar}});
    window.foo = instance.exports.foo;
  })();
</script>
